package com.xd.train.member.service;

import com.xd.train.member.dto.MemberLoginDTO;
import com.xd.train.member.dto.MemberRegisterDTO;
import com.xd.train.member.dto.MemberSendCodeDTO;
import com.xd.train.member.vo.MemberLoginVo;

public interface MemberService {
    int count();

    /**
     * 会员注册
     * @return 会员ID
     */
    Long register(MemberRegisterDTO memberRegisterDTO);

    /**
     * 发送验证码
     * @param memberSendCodeDTO
     */
    void sendCode(MemberSendCodeDTO memberSendCodeDTO);

    /**
     * 会员登录
     * @param memberLoginDTO
     * @return
     */
    MemberLoginVo Memberlogin(MemberLoginDTO memberLoginDTO);
}
